package com.nosuchfield.run;

import com.nosuchfield.httpstarter.HttpClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2019/4/12.
 */
@RestController
public class TestStarterController {

    @Resource
    private HttpClient httpClient;

    @GetMapping("/")/*访问URL*/
    public String helloworld() {
        return httpClient.getHtml();
    }

}
